package com.bootcamp.java;

/**
 * @program: ArrayCode
 * @description:
 * @author: Keyu Li
 * @create: 2021-08-26 21:37
 **/

public class SwapTest {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3};
        int[] arr2 = {4, 5, 6};
        swap(arr, arr2);
    }
    public static void swap(int[] arr, int[] arr2){
        int[] temp = arr;
        arr = arr2;
        arr2 = temp;
    }
}
